public class ZhaiZhiJie01
{
    public static void main(String[] args)
    {
           Student1 stu = new Student1();
           stu.setSchool("qinghua");
           stu.setName("zhangsan");
           stu.setAge(18);
    }
}

class Person1
{
    private String name;
    private int age;
    public Person1()
    {
        System.out.println("父类");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}

class Student1 extends Person1
{
    private String school;
    public Student1()
    {
        System.out.println("子类");
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
}